Tables [dbo].[WorkItemQueue]
Properties
PropertyValue
Created10:31:43 AM Tuesday, March 02, 2010
Last Modified11:40:10 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_WorkItemQueue: WorkItemQueueKeyWorkItemQueueKeyuniqueidentifier16
No
Foreign Keys FK_WorkItemQueue_WorkflowInstance: [dbo].[WorkflowInstance].WorkflowInstanceKeyIndexes IX_WorkItemQueue_WorkflowInstanceKey: WorkflowInstanceKeyWorkflowInstanceKeyuniqueidentifier16
No
PackageIduniqueidentifier16
Yes
ProcessIduniqueidentifier16
Yes
ActivityIduniqueidentifier16
Yes
PerformerKeyuniqueidentifier16
Yes
Descriptionnvarchar(200)400
Yes
ExecutionModeint4
Yes
IsInteractivebit1
No
((0))
Categorynvarchar(50)100
Yes
Indexes IX_WorkItemQueue_Priority_EnqueuedOn: Priority\EnqueuedOnPriorityint4
Yes
BeginOndatetime8
Yes
Indexes IX_WorkItemQueue_Priority_EnqueuedOn: Priority\EnqueuedOnEnqueuedOndatetime8
Yes
(getdate())
SelectionLockuniqueidentifier16
Yes
SelectedOndatetime8
Yes
KeepAlivedatetime8
Yes
WorkItemGraphimagemax
Yes
RecoveryPointbit1
No
((0))
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_WorkItemQueue: WorkItemQueueKeyPK_WorkItemQueueWorkItemQueueKey
Yes
IX_WorkItemQueue_Priority_EnqueuedOnPriority, EnqueuedOn
IX_WorkItemQueue_WorkflowInstanceKeyWorkflowInstanceKey
Foreign Keys Foreign Keys
NameColumns
FK_WorkItemQueue_WorkflowInstanceWorkflowInstanceKey->[dbo].[WorkflowInstance].[WorkflowInstanceKey]
SQL Script
CREATE TABLE [dbo].[WorkItemQueue]
(
[WorkItemQueueKey] [uniqueidentifier] NOT NULL,
[WorkflowInstanceKey] [uniqueidentifier] NOT NULL,
[PackageId] [uniqueidentifier] NULL,
[ProcessId] [uniqueidentifier] NULL,
[ActivityId] [uniqueidentifier] NULL,
[PerformerKey] [uniqueidentifier] NULL,
[Description] [nvarchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ExecutionMode] [int] NULL,
[IsInteractive] [bit] NOT NULL CONSTRAINT [DF_WorkItemQueue_IsInteractive] DEFAULT ((0)),
[Category] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Priority] [int] NULL,
[BeginOn] [datetime] NULL,
[EnqueuedOn] [datetime] NULL CONSTRAINT [DF_WorkItemQueue_EnqueuedOn] DEFAULT (getdate()),
[SelectionLock] [uniqueidentifier] NULL,
[SelectedOn] [datetime] NULL,
[KeepAlive] [datetime] NULL,
[WorkItemGraph] [image] NULL,
[RecoveryPoint] [bit] NOT NULL CONSTRAINT [DF_WorkItemQueue_RecoveryPoint] DEFAULT ((0)),
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
ALTER TABLE [dbo].[WorkItemQueue] ADD CONSTRAINT [PK_WorkItemQueue] PRIMARY KEY CLUSTERED ([WorkItemQueueKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_WorkItemQueue_Priority_EnqueuedOn] ON [dbo].[WorkItemQueue] ([Priority], [EnqueuedOn]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_WorkItemQueue_WorkflowInstanceKey] ON [dbo].[WorkItemQueue] ([WorkflowInstanceKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WorkItemQueue] ADD CONSTRAINT [FK_WorkItemQueue_WorkflowInstance] FOREIGN KEY ([WorkflowInstanceKey]) REFERENCES [dbo].[WorkflowInstance] ([WorkflowInstanceKey])
GO
Uses
Used By